package com.danicsoft.daide.binary;

/**
 * An interface for recieving state change events.  Implement this interface if you wish to recieve notification upon connection, disconnection, or new connection avaliable.
 * 
 * @author Daniel Yule (daniel.yule@gmail.com)
 * @version 1.0
 */
public interface StateChangeHandler {
	
	/**
	 * The connection we registered with is now connected (has recived an IM and RM).
	 *
	 */
	public void connected();
	
	/**
	 * We have been disconnected.
	 *
	 */
	public void disconnected();
	
	/**
	 * After listening for new connections, a new one has occurred.
	 * @param conn A connection to a new client.
	 */
	public void newConnection(Connection conn);

}
